﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GurLoader.CommandLineOptions;
using NUnit.Framework;

namespace GurLoaderWPF.Test.CommandLineOptions
{
    [TestFixture]
    public class SendImageOptionsTests
    {
        [Test]
        public void ValidateTest()
        {
            var opts = new SendImageOptions();
            opts.File = "C:\\test1.jpg";

            opts.Validate();
        }

        [Test]
        [ExpectedException]
        public void ValidateNullFileTest()
        {
            var opts = new SendImageOptions();
            opts.File = null;

            opts.Validate();
        }

        [Test]
        [ExpectedException]
        public void ValidateEmptyFileTest()
        {
            var opts = new SendImageOptions();
            opts.File = string.Empty;

            opts.Validate();
        }
    }
}
